package com.example.demofores.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author sjw
 * @className UserEs
 * @date 2021/5/25 18:09
 * @description: TODO
 */


@Document(indexName = "sjw", indexStoreType = "user")
public class UserEs {
    @Id
    private Integer id;

    private String name;

    private String addr;

    private Integer age;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
